package Zoo.handler;


import Zoo.view.userview.UpdateUserView;
import Zoo.view.userview.UserView;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * 用户的修改个人信息处理类
 */
public class UserViewHandler implements ActionListener {
    private UserView userView;

    public UserViewHandler(UserView userView) {
        this.userView = userView;
    }


    @Override
    public void actionPerformed(ActionEvent e) {
        JButton jButton = (JButton) e.getSource();
        String text = jButton.getText();
        if ("修改".equals(text)) {
            new UpdateUserView(userView);
        }
    }

}
